<template>
	<div>
		<!-- 展示面板：切换登陆和首页 -->
		<Home v-if="show === 'home'"></Home>
		<Login @getshow="getshow" v-else></Login>
	</div>
</template>

<script>
import Login from './Login'
import Home from './Home'
export default {
	data() {
		return {
			show: 'home',
		}
	},
	components: { Home, Login },
	methods: {
		getshow(name) {
			this.show = name
		},
	},
}
</script>